// 基于template/src/widgets/\{{appEntities}}/\{{ctrls@SEARCHFORM}}-searchform/\{{spinalCase ctrl.codeName}}-searchform-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

export class {{pascalCase ctrl.name}}ControlVO extends ControlVOBase {
  constructor(data: any){
    super(data);
    //  搜索表单自持属性
    this.$ownKeys = [{{#each ctrl.psDEFormItems as | item |}}'{{lowerCase item.id}}'{{#unless @last}}, {{/unless}}{{/each}}];
  }
{{#each ctrl.psDEFormItems as | item |}}
  {{#if item.psAppDEField}}
  get {{lowerCase item.id}}() {
    return this.$DO.{{lowerCase item.psAppDEField.codeName}};
  }
  set {{lowerCase item.id}}(value: any) {
    this.$DO.{{lowerCase item.psAppDEField.codeName}} = value;
  }
  {{/if}}
{{/each}}
{{#each ctrl.psDEFormItems as | item |}}
  {{#and (eq item.psAppDEField null) (neq item.id 'srfuf')}}
  {{lowerCase item.id}}: any;
  {{/and}}
{{/each}}
}